package com.website.util
{
	public class StringUtil
	{
		public function StringUtil()
		{
		}
		
		public static function toLowercase(str:String) : String
		{
			var retStr:String = "";
			var index:int = 0;
			while (index < str.length)
			{
				
				if (str.charAt(index) == " ")
				{
					retStr = retStr + "-";
				}
				else
				{
					retStr += str.charAt(index).toLowerCase();
				}
				index ++;
			}
			return retStr;
		}
	}
}